package com.weihua.conver;

import com.weihua.bo.SourceDataBo;
import com.weihua.po.SourceDataPo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface SourceDataConvert {

    SourceDataConvert T = Mappers.getMapper(SourceDataConvert.class);


    /**
     * 转换业务实体到持久化实体
     *
     * @param bo 业务实体
     * @return 持久化实体
     */
    SourceDataPo transBo2Po(SourceDataBo bo);

    /**
     * 转换持久化实体到业务实体
     *
     * @param po 持久化实体
     * @return 业务实体
     */
    SourceDataBo transPo2Bo(SourceDataPo po);
}